Feature: Check items available for sale
Description: As user I want to check if I could add to shopping cart any searched item.
File name: amazon_test.feature
Relative path: features/amazon_test.feature
Scenario Outline: Perform a seach for any item and add it to the shopping cart
Before
Hook
00:00:00.004
And
I click on search button
00:00:02.498
After
Hook
0s
Scenario Outline: Perform a seach for any item and add it to the shopping cart
Before
Hook
0s
And
I click on search button
00:00:03.469
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.xpath: //*[contains (text(),'Added to Cart')] (tried for 5 second(s) with 100 milliseconds interval) Build info: version: '4.8.1', revision: '8ebccac989' System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '19' Driver info: driver.version: unknown at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:263) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:231) at actions.BrowserActions.fluentWait(BrowserActions.java:32) at stepdefinitions.Tests.seeTheConfirmationMessage(Tests.java:99) at ✽.I see the confirmation message(file:///C:/Users/pedro.giron01/Desktop/GitHub/verify_items/src/test/java/features/amazon_test.feature:14)
And
I see the cart items count is "2"
0s
After
Hook
0s